package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author wss
 * @since 2020-05-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_area")
public class Area extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 货区编号
     */
    private String areaNo;

    /**
     * 货区名称
     */
    private String areaName;

    /**
     * 所属仓库 
     */
    private String warehouseId;
    /***
     * 面积
     */
    private Double areaMj;

    /**
     * 货架数目
     */
    @TableField(exist = false)
    private Integer shelfNum;

    /**
     * 货位数目
     */
    @TableField(exist = false)
    private Integer csNum;

    /**
     * 描述
     */
    private String areaRemark;

    /**
     * 状态 1已启用 2已停用
     */
    private String areaStatus;


    //树名字
    @TableField(exist = false)
    private String name;

    /**
     * 关联仓库
     */
    @TableField(exist = false)
    private Warehouse warehouse;

    @TableField(exist = false)
    private List<Shelf> children;


}
